using System;
using System.Collections.Generic;
using System.Reflection;

using RexToy.Compiler.Semantic;

namespace RexToy.ExpressionLanguage.AST
{
    public class IndexerNode : Node_2
    {
        internal IndexerNode(Node variable, ParamListNode paramList)
        {
            variable.ThrowIfNullArgument("variable");
            paramList.ThrowIfNullArgument("paramList");

            _node1 = variable;
            _node2 = paramList;
        }

        public Node Variable
        {
            get { return _node1; }
        }

        public Node Args
        {
            get { return _node2; }
        }
    }
}
